-- GENERATED SPELL FOR [Doomforge Arcanasmith] --


function spell0_8900(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(13748,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8900', 1000, 1)
end

function spell1_8900(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(13745,pUnit)
pUnit:RegisterEvent('Sorts_8900', 1500, 1)
end

function Sorts_8900(pUnit, Event)
local choix_sorts_8900 = math.random(0, 1)
if choix_sorts_8900 == 0 then
pUnit:RegisterEvent('spell0_8900', 1, 1)
end
if choix_sorts_8900 == 1 then
pUnit:RegisterEvent('spell1_8900', 1, 1)
end
end

function mob8900_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8900', math.random(1500, 3000), 1)
end

function mob8900_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8900_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8900_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8900, 1, 'mob8900_Action')
RegisterUnitEvent(8900, 2, 'mob8900_Leave')
RegisterUnitEvent(8900, 3, 'mob8900_Kill')
RegisterUnitEvent(8900, 4, 'mob8900_Die')
